<template>
  <div class="distributionNetwork-list">
    <h2>配网</h2>
    <p>产品类型、aafaa454561</p>
    <el-upload
      class="avatar-uploader"
      action="https://jsonplaceholder.typicode.com/posts/"
      :show-file-list="false"
      :on-success="handleAvatarSuccess"
      :before-upload="beforeAvatarUpload"
    >
      <img v-if="imageUrl" :src="imageUrl" class="avatar">
      <i v-else class="el-icon-plus avatar-uploader-icon"></i>
    </el-upload>
    <p>配网文案</p>
    <el-input
      type="textarea"
      resize="vertical"
      autosize
      placeholder="请输入版本描述"
      v-model="desc"
    ></el-input>
    <p>确认说明</p>
    <el-input v-model="explain" placeholder="请输入内容"></el-input>
    <div class="er-code">
        <p>二维码配图</p>
        <img src="../../../static/images/erweima.png" alt="">
    </div>
  </div>
</template>

<script>
export default {
  name: "distributionNetwork-list",
  data() {
    return {
      imageUrl: "",
      desc:"",
      explain:""
    };
  },
  methods: {
      handleAvatarSuccess(){

      },
      beforeAvatarUpload(){

      }
  }
};
</script>

<style lang="less">
.distributionNetwork-list {
    text-align: left;
  p{
    padding: 20px 0;
  }
  .avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  .avatar-uploader .el-upload:hover {
    border-color: #409eff;
  }
  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 178px;
    height: 178px;
    line-height: 178px;
    text-align: center;
  }
  .avatar {
    width: 178px;
    height: 178px;
    display: block;
  }
}
</style>